import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);

const routes = [
  {
    path: "/",
    component: () => import("@/views/frameLayout.vue"),
    children: [
      {
        path: "/home",
        name: "home",
        meta: {
          hiddenNav: true,
        },
        component: () => import("@/views/home.vue"),
      },
      {
        path: "/table",
        name: "table",
        meta: {
          hiddenNav: true,
        },
        component: () => import("@/views/table/index.vue"),
      },
      {
        path: "/actionBar",
        name: "actionBar",
        meta: {
          hiddenNav: true,
        },
        component: () => import("@/views/actionBar/index.vue"),
      },
    ],
  },
];

const router = new VueRouter({
  mode: "history",
  routes,
});

export default router;
